import { http } from "@/utils/request";

// 手机通讯录
export const create_phone_friend = (data:any)=> {
  return http('POST','/create_phone_friend',data) //创建手机通讯录
};

export const check_phone_friend_sign_up = (data:any)=> {
  return http('GET','/friend/check_phone_friend_sign_up/'+data.phone) //检查手机通讯录用户是否注册
};

export const phone_friend_info = (data:any)=> {
  return http('GET','/friend/phone_friend_info/'+data.phone) //手机通讯录查询用户详情
};

export const add_phone_friend = (data:any)=> {
  return http('POST','/add_phone_friend',data) //发起添加手机号通讯录好友请求
};

// 搜索好友
export const friend_search = (data:any)=> {
  return http('GET','/friend/search/'+data.phone) //查询新账户
};

export const not_friend_info = (data:any)=> {
  return http('GET','/friend/not_friend_info/'+data.unique_code) //查看用户详情信息,不是好友关系才能调用
};

export const friend_add = (data:any)=> {
  return http('POST','/friend/add',data) //发起添加好友请求
};

// 新朋友
export const user_new_friend_query = (data:any)=> {
  return http('POST','/user_new_friend/query',data) //新朋友列表
};

export const new_friend_info = (data:any)=> {
  return http('GET','/friend/new_friend_info/'+data.system_code) //查看新好友详情信息
};

export const friend_accept = (data:any)=> {
  return http('POST','/friend/accept/'+data.unique_code) //接受添加好友请求
};

// 导航栏通讯录
export const friend_info = (data:any)=> {
  return http('GET','/friend/info/'+data.unique_code) //查看好友详情信息,已经是好友关系才能调用
};

export const user_contact_query = (data:any)=> {
  return http('POST','/user_contact/query',data) //通讯录好友列表
};

export const friend_remark = (data:any)=> {
  return http('POST','/friend/remark/'+data.unique_code,data) //设置好友备注
};

// 扫码添加好友
export const friend_is_friend = (data:any)=> {
  return http('GET','/friend/is_friend/'+data.system_code) //用户是否是自己好友
};